namespace eg._array;

public class Eg_Array
{
    int[] array = { 1, 2, 3, 4, 6, 1, 5, 2 };
    public void PrintArray(int index)
    {
        Console.WriteLine(array[index]);
        List<int> arrayList = new List<int>(array);
        foreach (int i in arrayList)
        {
            Console.WriteLine(i);
        }
    }
}